//
//  BannerControlView.h
//  DetailNSNULL
//
//  Created by 蓓蕾 on 2021/7/27.
//  Copyright © 2021 YangYang. All rights reserved.
//

#import <UIKit/UIKit.h>



typedef NS_ENUM(NSInteger,ControllerLocationType)
{
    BottomCenterType,
    BottomLeftType,
    BottomRightType,
    RightTopType,
    RightCenterType,
    RightBottomType
};

typedef NS_ENUM(NSInteger, ControllerShapeType)
{
    /** 圆形 */
    CircleType,
    /** 正方形 */
    SquareType,
    /** 长方形 */
    RectangleType
};

NS_ASSUME_NONNULL_BEGIN

@interface BannerControlView : UIView

/** 总数 */
@property (nonatomic, assign) NSInteger dotCount;
/** 当前下标 */
@property (nonatomic, assign) NSInteger currentDotIndex;
/** 未选中颜色 */
@property (nonatomic, strong) UIColor *normalDotColor;
/** 当前颜色 */
@property (nonatomic, strong) UIColor *currentDotColor;

@property (nonatomic, assign) ControllerLocationType locationType;

@property (nonatomic, assign) ControllerShapeType shapeType;

@property (nonatomic, assign) BOOL autoCenterFrame;

@property (nonatomic, copy) void (^CurrentDotIndexChangedBlock)(NSInteger index);

@end

NS_ASSUME_NONNULL_END
